﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatterns.Strategy
{
    public class CashRebate : CashSuper
    {
        private decimal rebate;

        public CashRebate(decimal rebate)
        {
            this.rebate = rebate;
        }

        public override decimal AcceptCash(decimal money)
        {
            return money * rebate;
        }
    }
}
